package com.ajoclass.ft.tools;

import com.jayway.restassured.response.Response;

import static com.jayway.restassured.RestAssured.given;

public class GetClient {

    public static Response get(String apiPath) {
        Response response = given().
                contentType("application/json;charset=UTF-8").
                headers("headers1", "value1", "headers2", "values2").
                cookies("cookies1", "values1", "cookies2", "values2").
                when().log().all().get(apiPath.trim());
        response.getBody().prettyPrint();
        return response;
    }
}
